package com.jichangxiu.system.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.jichangxiu.common.entity.po.BaseEntity;
import com.jichangxiu.system.entity.bo.SysInfoBo;
import com.jichangxiu.system.entity.vo.SysInfoVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * SysInfo: sys_info 系统登录信息
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:24
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AutoMappers({
        @AutoMapper(target = SysInfoBo.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysInfoVo.class, reverseConvertGenerate = false)
})
public class SysInfo extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 编码
     */
    @TableField(value = "no")
    private String no;

    /**
     * 业务类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * IP地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * IP定位
     */
    @TableField(value = "location")
    private String location;

    /**
     * 浏览器
     */
    @TableField(value = "browser")
    private String browser;

    /**
     * 操作系统
     */
    @TableField(value = "`system`")
    private String system;

    /**
     * 请求参数
     */
    @TableField(value = "param")
    private String param;

    /**
     * 结果信息
     */
    @TableField(value = "result")
    private String result;

    /**
     * 异常信息
     */
    @TableField(value = "exception")
    private String exception;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Boolean status;

    /**
     * 短令牌
     */
    @TableField(value = "jti")
    private String jti;

    /**
     * 长令牌
     */
    @TableField(value = "jwt")
    private String jwt;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "deleted")
    private Long deleted;

}